<template>
  <div id="seize" @click.stop="$emit('click')">
    <div class="image">
      <img src="../assets/miao.png" />
    </div>
    <div class="van-multi-ellipsis--l2 title">印度小叶紫檀财神手把摆件</div>
    <div class="price">
      <div class="num">
        <div class="unit">￥</div>
        <div>¥460</div>
      </div>
      <div class="original">原价：￥500</div>
    </div>
  </div>
</template>

<script>
import { mapState } from "vuex";

export default {
  props: {
    s: {
      type: Object,
      default() {
        return {};
      },
    },
    price: [String, Number],
  },
  computed: {
    ...mapState(["baseURL"]),
  },
};
</script>

<style lang='less' scoped>
#seize {
  position: relative;
  background: rgba(255, 255, 255, 1);

  .image {
    .fj(center);

    img {
      display: block;
      max-width: 100%;
      height: 4rem;
    }
  }

  .title {
    margin: 0.16rem 0.2rem;
    max-height: 1.44rem;
    font-size: 0.52rem;
    line-height: 0.72rem;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: rgba(44, 42, 41, 1);
  }

  .price {
    padding: 0 0.12rem;
    .fa(center);

    .num {
      font-size: 0.56rem;
      line-height: 0.56rem;
      font-family: STZhongsong;
      color: rgba(196, 66, 66, 1);
      .fa(flex-end);

      .unit {
        font-size: 0.48rem;
        line-height: 0.48rem;
      }
    }

    .original {
      padding-left: 0.56rem;
      font-size: 0.48rem;
      line-height: 0.48rem;
      font-family: PingFangSC-Light, PingFang SC;
      font-weight: 300;
      color: rgba(153, 153, 153, 1);
      text-decoration: line-through;
    }
  }
}
</style>
